home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Date: Wed, 24 Jan 1996 12:37:05 GMT
- Organization: Netcom
- Message-ID: <3106260f.224013120@nntp.ix.netcom.com>
- References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <SPENCER.96Jan22113215@zorgon.ERA.COM> <4e1nd8$hv0@solutions.solon.com> <3104bfc8.132251392@nntp.ix.netcom.com> <dewar.822407919@schonberg>
- NNTP-Posting-Host: ix-dc9-06.ix.netcom.com
- X-NETCOM-Date: Wed Jan 24 4:36:53 AM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- dewar@cs.nyu.edu (Robert Dewar) wrote:
-
- > Michael says (talking about overflow in C)
- >
- > "An implementation must handle this and must document how it does so."
- >
- > Yes, of course the documentation may say that the result is to delete
- > your system disk. Even if a more reasonable behavior is described, any
- > program relying on such an implementation dependent feature is of
- > course compromising its portability. One of the troubles with C is
- > that it is oh-so-easy to introduce implementation dependence.
- >
- > It is interesting to note that a number of "bug" reports sent into gcc
- > are complaints that GCC does not duplicate some implementation
- > dependent behavior seen in some other compiler.
-
- Is it really necessary to post this kind of nonsense. No, the
- documentation may not say the result is to delete your system disk.
- Repeating the quote from ISO 6.2.1.2
-
- When a value with integral type is demoted to a signed integer
- with smaller size or an unsigned integer is converted to its
- corresponding signed integer, if the value cannot be
- represented the result is implementation defined.
-
- This requires an implementation to convert the integral type. It does
- not give it license to take actions not specified by the standard.
-
-
- Michael M Rubenstein
-